package com.px.project.module.ml.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;
import com.px.common.dto.Dto;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 物资系统》基础管理》施工队伍数据传输对象
 *
 * @author 品讯科技
 * @date 2024-08
 */
@Getter
@Setter
@Accessors(chain = true)
public class ConstructionTeamDto extends Dto {
    private static final long serialVersionUID = 5183832938716838381L;
    /**
     * 队伍名称
     */
    @NotBlank(message = "队伍名称必填项")
    @Length(max = 255, message = "队伍名称不能超过255个字")
    private String teamName;
    /**
     * 责任人
     */
    @NotNull(message = "责任人必填项")
    private Long principalId;
    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话必填项")
    @Length(max = 64, message = "联系电话不能超过64个字")
    private String contactNumber;
}